package main

import "fmt"

func main() {
	s := [10]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
	fmt.Println(s[0:3])
	fmt.Println(s[3:6])
	fmt.Println(s[6:9])
	fmt.Println(s[9:10])
	s3 := s[1:3] // [2 3]
	s4 := s[2:5] // [3 4 5]
	s3 = append(s3, 44)
	fmt.Println(s3, s4) // [2 3 44] [3 44 5]
}
